﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;

namespace Service1.Controllers {
    [Route("api/[controller]/[action]")]
    [ApiController]
    public class ValuesController : ControllerBase {
        [HttpGet]
        public IActionResult GetById(string id) {
            return Content($"This is Service1 id:{id}");
        }

        public IActionResult AddUser([FromBody] dynamic userDto) {
            return Content($"Service1, User:{userDto.UserId},{userDto.Name}");
        }
    }
}
